import time  # 引入time模块
ticks = time.time()
print(ticks)
print(time.localtime(time.time()))
print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()))
